<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(document).ready(function(){
		$("#confirmBtn").click(function(){
			var password = $("#password").val();		
			if(password==""){
				alert("패스워드를 입력하세요!");
				return false;
			}			
			$.ajax({
				type:"get",
				url:"${initParam.root}member/auth_memberPasswordCheck.do",
				data:"memberPassword="+password+"&command=${param.command}",
				success:function(data){
					//alert(data.flag);
					if(data.flag=="ok"){
						if(data.command=="memberUpdate"){
							alert("업데이트 폼으로 이동합니당.");
							 var url="${initParam.root}member/memberUpdateView.do";                     
					            $(location).attr('href',url); 
						}else{
							if(confirm("진짜 탈퇴할거에요?")){
								alert("탈퇴하겠습니다.");
								 var url="${initParam.root}member/auth_memberLeave.do?memberNo=${sessionScope.mvo.memberNo}";                     
						            $(location).attr('href',url); 
							}else{
								alert("그죠 아니죠?");
								return false;
							}						
						}					
					}else{
						alert("비번 틀렸엉");
					}				
				}//callback			
			});//ajax
			/* var url="${initParam.root}member/login_okView.do?password="+password;                     
            $(location).attr('href',url); */
		});			
	});
</script>

비밀번호
<input type="password" id="password" name="password">
<input type="button" value="확인" id="confirmBtn">
